package com.joker.warehouse.controller;

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.joker.common.log.annotation.Log;
import com.joker.common.log.enums.BusinessType;
import com.joker.common.security.annotation.RequiresPermissions;
import com.joker.warehouse.domain.PmsSupplier;
import com.joker.warehouse.service.IPmsSupplierService;
import com.joker.common.core.web.controller.BaseController;
import com.joker.common.core.domain.Result;
import com.joker.common.core.utils.poi.ExcelUtil;


/**
 * 供应商Controller
 *
 * @author joker
 * @date 2025-01-14
 */
@RestController
@RequestMapping("/supplier")
public class PmsSupplierController extends BaseController
{
    @Autowired
    private IPmsSupplierService pmsSupplierService;

    /**
     * 查询供应商列表
     */
    @GetMapping("/list")
    public Result list(PmsSupplier pmsSupplier)
    {
        List<PmsSupplier> list = pmsSupplierService.selectPmsSupplierList(pmsSupplier);
        return Result.success(list);
    }


}
